package cn.westv.scps.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

/**
 * Created by Administrator on 2017/08/09.
 */
@Entity(name = "sms_template")
// @Table(name = "sms_template", schema = "scps", catalog = "")
public class SmsTemplateEntity implements Serializable{
	private String smsTeplId;
	private String company;
	private String content;
	private String code;
	private String tplId;
	private String checkStatus;
	private Date createTime;
	private String stauts;

	public String getStauts() {
		return stauts;
	}

	public void setStauts(String stauts) {
		this.stauts = stauts;
	}

	@Id
	@Column(name = "sms_tepl_id", nullable = false, length = 32)
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	public String getSmsTeplId() {
		return smsTeplId;
	}

	public void setSmsTeplId(String smsTeplId) {
		this.smsTeplId = smsTeplId;
	}

	@Basic
	@Column(name = "company", nullable = true, length = 32)
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Basic
	@Column(name = "code", nullable = true, length = 32)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Basic
	@Column(name = "tpl_id", nullable = true, length = 32)
	public String getTplId() {
		return tplId;
	}

	public void setTplId(String tplId) {
		this.tplId = tplId;
	}

	@Basic
	@Column(name = "check_status", nullable = true, length = 32)
	public String getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(String checkStatus) {
		this.checkStatus = checkStatus;
	}

	@Basic
	@Column(name = "create_time", nullable = true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		SmsTemplateEntity that = (SmsTemplateEntity) o;

		if (smsTeplId != null ? !smsTeplId.equals(that.smsTeplId) : that.smsTeplId != null)
			return false;
		if (company != null ? !company.equals(that.company) : that.company != null)
			return false;
		if (code != null ? !code.equals(that.code) : that.code != null)
			return false;
		if (tplId != null ? !tplId.equals(that.tplId) : that.tplId != null)
			return false;
		if (checkStatus != null ? !checkStatus.equals(that.checkStatus) : that.checkStatus != null)
			return false;
		if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null)
			return false;

		return true;
	}

	@Override
	public int hashCode() {
		int result = smsTeplId != null ? smsTeplId.hashCode() : 0;
		result = 31 * result + (company != null ? company.hashCode() : 0);
		result = 31 * result + (code != null ? code.hashCode() : 0);
		result = 31 * result + (tplId != null ? tplId.hashCode() : 0);
		result = 31 * result + (checkStatus != null ? checkStatus.hashCode() : 0);
		result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
		return result;
	}
}
